package com.wulian.common.vo;

public class ResultMoudelPage<T> {
	 private static final long serialVersionUID = -7057153790181338635L;
	    //返回成功与否状态 "success" 或"error"
	    private String resultFlag;
	    //返回文字说明消息
	    private String  message;
	    //总记录数
	    private Integer totalItem = 0;
	    //总页数
	    private Integer totalPage = 0;
	    //当前页面
	    private Integer currentPage = 0;
	    //每页显示多少条
	    private Integer pageSize =20;
	    //返回数据集合
	    private T body;

	    public ResultMoudelPage() {
	    }

	    public ResultMoudelPage(String resultFlag, String message, T body) {
	        this.resultFlag = resultFlag;
	        this.message = message;
	        this.body = body;
	    }

	    public ResultMoudelPage(String resultFlag, String message, Integer totalItem, Integer totalPage, Integer currentPage, Integer pageSize, T body) {
	        this.resultFlag = resultFlag;
	        this.message = message;
	        this.totalItem = totalItem;
	        this.totalPage = totalPage;
	        this.currentPage = currentPage;
	        this.pageSize = pageSize;
	        this.body = body;
	    }

	    public String getResultFlag() {
	        return resultFlag;
	    }

	    public void setResultFlag(String resultFlag) {
	        this.resultFlag = resultFlag;
	    }

	    public String getMessage() {
	        return message;
	    }

	    public void setMessage(String message) {
	        this.message = message;
	    }

	    public Integer getTotalItem() {
	        return totalItem;
	    }

	    public void setTotalItem(Integer totalItem) {
	        this.totalItem = totalItem;
	    }

	    public Integer getTotalPage() {
	        return totalPage;
	    }

	    public void setTotalPage(Integer totalPage) {
	        this.totalPage = totalPage;
	    }

	    public Integer getCurrentPage() {
	        return currentPage;
	    }

	    public void setCurrentPage(Integer currentPage) {
	        this.currentPage = currentPage;
	    }

	    public Integer getPageSize() {
	        return pageSize;
	    }

	    public void setPageSize(Integer pageSize) {
	        this.pageSize = pageSize;
	    }

	    public T getBody() {
	        return body;
	    }

	    public void setBody(T body) {
	        this.body = body;
	    }
}
